﻿package com.avetti.simplemerce.adminpages.datatransfer;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

import com.avetti.commerce.domainmodel.Itemattrib;
import com.avetti.commerce.domainmodel.Options;

public class AttributemainDTO{

    private static final long serialVersionUID = 1L;

    /**
     * Interface extracted from Attributes domain model for provide ability to
     * create cover class for it domain model
     * 
     *  Jast required by AttributeRowDecorator
     * 
     * @author D.Minenko
     *
     */
    public interface IAttributes {

        public abstract Long getAttributeid();

        public abstract void setAttributeid(Long attributeid);

        public abstract long getItemid();

        public abstract void setItemid(long itemid);

        public abstract String getAttype();

        public abstract void setAttype(String attype);

        public abstract String getCols();

        public abstract void setCols(String cols);

        public abstract String getDefvalue();

        public abstract void setDefvalue(String defvalue);

        public abstract String getPrompt();

        public abstract void setPrompt(String prompt);

        public abstract String getDataname();

        public abstract void setDataname(String dataname);

        public abstract String getDropname();

        public abstract void setDropname(String dropname);

        public abstract String getRows();

        public abstract void setRows(String rows);

        public abstract String getScreenname();

        public abstract void setScreenname(String screenname);

        public abstract int getChprice();

        public abstract void setChprice(int chprice);

        public abstract String getVendorid();

        public abstract void setVendorid(String vendorid);

        public abstract long getOldattributeid();

        public abstract void setOldattributeid(long oldattributeid);

        public abstract String getScreenname1();

        public abstract void setScreenname1(String screenname1);

        public abstract String getScreenname3();

        public abstract void setScreenname3(String screenname3);

        public abstract boolean equals(Object other);

        public abstract long getPagetileid();

        public abstract void setPagetileid(long pagetileid);

        /**
         * @return the itemlinks
         */
        public abstract Set<Itemattrib> getItemlinks();

        /**
         * @param itemlinks the itemlinks to set
         */
        public abstract void setItemlinks(Set<Itemattrib> itemlinks);

        /**
         * @return the options
         */
        public abstract List<Options> getOptions();

        /**
         * @param options the options to set
         */
        public abstract void setOptions(List<Options> options);
    }    
    
    /**
     * Cover class for Attributes domain model
     * 
     * Extends domain model by special data
     * 
     * @author D.Minenko
     *
     */
    public class AttributeDTO implements IAttributes{
        private IAttributes attributeData;
        private int position;

        /**
         * @return the attributeData
         */
        public IAttributes getAttributeData() {
            return attributeData;
        }

        /**
         * @param attributeData the attributeData to set
         */
        public void setAttributeData(IAttributes attributeData) {
            this.attributeData = attributeData;
        }

        /**
         * @return the position
         */
        public int getPosition() {
            return position;
        }

        /**
         * @param position the position to set
         */
        public void setPosition(int position) {
            this.position = position;
        }
        
        public Long getAttributeid() {
            return attributeData.getAttributeid();
        }

        public void setAttributeid(Long attributeid) {
            attributeData.setAttributeid(attributeid);
        }

        public long getItemid() {
            return attributeData.getItemid();
        }

        public void setItemid(long itemid) {
            attributeData.setItemid(itemid);
        }

        public String getAttype() {
            return attributeData.getAttype();
        }

        public void setAttype(String attype) {
            attributeData.setAttype(attype);
        }

        public String getCols() {
            return attributeData.getCols();
        }

        public void setCols(String cols) {
            attributeData.setCols(cols);
        }

        public String getDefvalue() {
            return attributeData.getDefvalue();
        }

        public void setDefvalue(String defvalue) {
            attributeData.setDefvalue(defvalue);
        }

        public String getPrompt() {
            return attributeData.getPrompt();
        }

        public void setPrompt(String prompt) {
            attributeData.setPrompt(prompt);
        }

        public String getDataname() {
            return attributeData.getDataname();
        }

        public void setDataname(String dataname) {
            attributeData.setDataname(dataname);
        }

        public String getDropname() {
            return attributeData.getDropname();
        }

        public void setDropname(String dropname) {
            attributeData.setDropname(dropname);
        }

        public String getRows() {
            return attributeData.getRows();
        }

        public void setRows(String rows) {
            attributeData.setRows(rows);
        }

        public String getScreenname() {
            return attributeData.getScreenname();
        }

        public void setScreenname(String screenname) {
            attributeData.setScreenname(screenname);
        }

        public int getChprice() {
            return attributeData.getChprice();
        }

        public void setChprice(int chprice) {
            attributeData.setChprice(chprice);
        }

        public String getVendorid() {
            return attributeData.getVendorid();
        }

        public void setVendorid(String vendorid) {
            attributeData.setVendorid(vendorid);
        }

        public long getOldattributeid() {
            return attributeData.getOldattributeid();
        }

        public void setOldattributeid(long oldattributeid) {
            attributeData.setOldattributeid(oldattributeid);
        }

        public String getScreenname1() {
            return attributeData.getScreenname1();
        }

        public void setScreenname1(String screenname1) {
            attributeData.setScreenname1(screenname1);
        }

        public String getScreenname3() {
            return attributeData.getScreenname3();
        }

        public void setScreenname3(String screenname3) {
            attributeData.setScreenname3(screenname3);
        }


        /**
         * @return the itemlinks
         */
        public Set getItemlinks() {
            return attributeData.getItemlinks();
        }

        /**
         * @param itemlinks the itemlinks to set
         */
        public void setItemlinks(Set itemlinks) {
            attributeData.setItemlinks(itemlinks);
        }

        /**
         * @return the options
         */
        public List<Options> getOptions() {
            return attributeData.getOptions();
        }

        /**
         * @param options the options to set
         */
        public void setOptions(List<Options> options) {
            attributeData.setOptions(options);
        }

        public long getPagetileid() {
            return attributeData.getPagetileid();
        }

        public void setPagetileid(long pagetileid) {
            attributeData.setPagetileid(pagetileid);
        }
        
    }
    
	private String itemid = "";
	private String code = "";
	private String NoOfCateg = "";
	private String warning = "n";
	private boolean multicurr = false;
	private String[] ids = {};
	private List result = new ArrayList();
	private String showorder = "";
	private String mcrr = "";
	private int intnumatt = 0;
	private String [] selected = {};
	private boolean doitem = true;
	
	public boolean isDoitem() {
		return doitem;
	}
	public void setDoitem(boolean doitem) {
		this.doitem = doitem;
	}
	public String[] getSelected() {
		return selected;
	}
	public void setSelected(String[] selected) {
		this.selected = selected;
	}
	public int getIntnumatt() {
		return intnumatt;
	}
	public void setIntnumatt(int intnumatt) {
		this.intnumatt = intnumatt;
	}
	public String getMcrr() {
		return mcrr;
	}
	public void setMcrr(String mcrr) {
		this.mcrr = mcrr;
	}
	public String getShoworder() {
		return showorder;
	}
	public void setShoworder(String showorder) {
		this.showorder = showorder;
	}
	public List getResult() {
		return result;
	}
	public void setResult(List result) {
		this.result = result;
	}
	public String[] getIds() {
		return ids;
	}
	public void setIds(String[] ids) {
		this.ids = ids;
	}
	public boolean isMulticurr() {
		return multicurr;
	}
	public void setMulticurr(boolean multicurr) {
		this.multicurr = multicurr;
	}
	public String getNoOfCateg() {
		return NoOfCateg;
	}
	public void setNoOfCateg(String noOfCateg) {
		NoOfCateg = noOfCateg;
	}
	public String getWarning() {
		return warning;
	}
	public void setWarning(String warning) {
		this.warning = warning;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getItemid() {
		return itemid;
	}
	public void setItemid(String itemid) {
		this.itemid = itemid;
	}
	
}
